﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataAccess
{
  public  class viewGetpermisson
    {
      public int UserID { get; set; }
      public string UserName { get; set; }
      public string Password { get; set; }
      public int ParentID { get; set; }
      public string MenuName { get; set; }
      public string Description { get; set; }
      public string HTML { get; set; }
      public int OrgID { get; set; }
      public string Link { get; set; }
      public int MenuID { get; set; }
      public string GroupName { get; set; }
      public int NumberPermison { get; set; }
      public static List<viewGetpermisson> SelectList_IDnew(object []b)
        {
            return Core.CBO.FillCollection<viewGetpermisson>(Core.SqlDataProvider.Instance.ExecuteReader("[GetListMenu]", b));
          //  return cm.Select_ID(b, "sp_PhanQuyen_SelectByID");
        }
      public static List<viewGetpermisson> SelectListUC_user(object[] b)
      {
          return Core.CBO.FillCollection<viewGetpermisson>(Core.SqlDataProvider.Instance.ExecuteReader("[GetListMenu2]", b));
          //  return cm.Select_ID(b, "sp_PhanQuyen_SelectByID");
      }
      public static viewGetpermisson Select_IDnew(object[] b)
      {
          return Core.CBO.FillObject<viewGetpermisson>(Core.SqlDataProvider.Instance.ExecuteReader("GetNumberPermison_UC", b));
          //  return cm.Select_ID(b, "sp_PhanQuyen_SelectByID");
      }




      public string UserControlDescribe { get; set; }
    }
}
